import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
    server: {
      open: true, // 自动打开浏览器
      hmr: true, // 热更新
      port: 8080, //vite项目启动时自定义端口
    },
    resolve: {
      alias: {
        "@": resolve(__dirname, "./src"),
		"@css": resolve(__dirname, "./src/assets/css"),
      }
    },
})